package com.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bean.Product;

import java.util.List;

public interface IProductService {
    /**
     *
     * @param product
     * @return
     */
    Product inseret(Product product);
    /**
     *
     * @param product
     * @return
     */
    Product update(Product product);
    /**
     *
     * @param id
     * @return
     */
    Product getById(Integer id);
    /**
     *
     * @param id
     * @return
     */
    int deleteById(Integer id);
  List<Product> getListByPage(IPage page,Product product);
    /**
     * @Param Product
     * @return
     * 设置产品状态为激活
      */

    List<Product> getList(Product product);

    /**
     *
     * @param product
     * @return
     */
    int setActive(Product product);
}
